package com.tiankun.eurekasellinfo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 杨天可
 * @Date 2020/11/13 9:12
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Table(name = "tb_merchant")
public class Merchant implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "mer_id")
    private  Integer merId;
    @Column(name = "mer_name")
    private  String merName;
    @Column(name = "mer_phone")
    private String merPhone;
    @Column(name = "mer_password")
    private String merPassword;
    @Column(name = "mer_sex")
    private Integer merSex;
    @Column(name = "mer_birthday")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date merBirthday;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "mer_created")
    private Date merCreated;
    @Column(name = "mer_salt")
    private String merSalt;
    @Column(name = "mer_img")
    private String merImg;
    @Column(name = "mer_card")
    private String merCard;

    private String yzm;
}
